package com.hxjb.mapper;

import com.hxjb.common.MyMapper;
import com.hxjb.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * Created by wt on 2018/4/19.
 */
@Mapper
public interface UserMapper {
    @Insert("insert into hxjb_user(mobile,reg_time) values(#{mobile},sysdate())")
    @Options(useGeneratedKeys = true,keyProperty = "id")
    void save(User user);

    User getById2(Integer id);

}
